package org.jeecg.modules.exTenderAnnQuaInqueryAnn.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import org.jeecg.modules.exPingbiao.entity.ExPingbiaoExpert;
import org.jeecg.modules.exTenderAnnQuaInqueryAnn.entity.ExGcNoticesection;
import org.jeecg.modules.exTenderAnnQuaInqueryAnn.mapper.ExGcNoticesectionMapper;
import org.jeecg.modules.exTenderAnnQuaInqueryAnn.service.IExGcNoticesectionService;
import org.springframework.stereotype.Service;
import java.util.List;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * @Description: 关联标段
 * @Author: jeecg-boot
 * @Date:   2024-09-04
 * @Version: V1.0
 */
@Service
public class ExGcNoticesectionServiceImpl extends ServiceImpl<ExGcNoticesectionMapper, ExGcNoticesection> implements IExGcNoticesectionService {
	
	@Autowired
	private ExGcNoticesectionMapper exGcNoticesectionMapper;
	
	@Override
	public List<ExGcNoticesection> selectByMainId(String mainId) {
		return exGcNoticesectionMapper.selectByMainId(mainId);
	}

	@Override
	public List<ExGcNoticesection> selectByMainIdList(List<String> mainIdList) {
		return exGcNoticesectionMapper.selectByMainIdList(mainIdList);
	}

	@Override
	public ExGcNoticesection selectBySectionId(String sectionId) {
		LambdaQueryWrapper<ExGcNoticesection> query = new LambdaQueryWrapper<ExGcNoticesection>()
				.eq(ExGcNoticesection::getBidSectionId, sectionId);
		return this.getOne(query);
	}


}
